import ajax from './index'


export function seller_list(condition) {
    if(!condition) {
        condition = {
            pageNum: 1,
            pageSize: 100
        }
    }
    return ajax({
        url: "/backend/seller/list",
        method: "get",
        params: condition
    });
}

export function seller_save(param) {
    return ajax({
        url: "/backend/seller/save",
        method: "post",
        data: param
    });
}
export function seller_detail(id) {
    return ajax({
        url: "/backend/seller/detail/" + id,
        method: "get"
    });
}
export function seller_del(id) {
    return ajax({
        url: "/backend/seller/delete?ids=" + id,
        method: "post"
    });
}
export function seller_check(id) {
    return ajax({
        url: "/backend/seller/check?ids=" + id,
        method: "post"
    });
}
export function seller_check2(id) {
    return ajax({
        url: "/backend/seller/check2?ids=" + id,
        method: "post"
    });
}
export function seller_refuse(id) {
    return ajax({
        url: "/backend/seller/refuse?ids=" + id,
        method: "post"
    });
}

export function seller_money_record_list(condition) {
    if(!condition) {
        condition = {
            pageNum: 1,
            pageSize: 100
        }
    }
    return ajax({
        url: "/backend/seller/money_record_list",
        method: "get",
        params: condition
    });
}

export function seller_recharge(param) {
    return ajax({
        url: "/backend/seller/recharge",
        method: "post",
        data: param
    });
}